package serverapp;

import java.io.Serializable;

public class Customer implements Serializable
{
	private String firstName, surname, phoneNum;
	private double credit;
	/*private boolean hasRented = false;
	private int numberOfMovies;*/
	
	public Customer()
	{
		firstName = "";
		surname = "";
		phoneNum = "";
		credit = 0.0;		
	}
	
	public Customer(String f, String l, String p, double c)
	{
		firstName = f;
		surname = l;
		phoneNum = p;
		credit = c;
	}
	
	public void setName(String f)
	{
		firstName = f;
	}
	
	public void setSurname(String s)
	{
		surname = s;
	}
	
	public void setPhoneNum(String p)
	{
		phoneNum = p;
	}
	
	public void setCredit(double c)
	{
		credit = c;
	}
	
	/*public void setNumberOfMovies(int n)
	{
		numberOfMovies += n;
	}
	
	public void setHasRented(boolean h)
	{
		hasRented = h;
	}*/
	
	public String getName()
	{
		return firstName;
	}
	
	public String getSurname()
	{
		return surname;
	}
	
	public String getPhoneNum()
	{
		return phoneNum;
	}
	
	public double getCredit()
	{
		return credit;
	}
	
	/*public int getNumberOfMovies()
	{
		return numberOfMovies;
	}
	
	public boolean getHasRented()
	{
		return hasRented;
	}*/
	
	public String toString()
	{
		return getSurname() + "\t" + getName() + "\t" + getPhoneNum() + "\t" + getCredit() + "\n";
	}
}